package com.ys.entity.sys;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TOA_Notice", catalog="Id")
public class ToaNotice extends BaseEntity<ToaNotice> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="CreateChangeId", nameJava="createChangeId", typeDataBase="bigint")
	private Long createChangeId;
	@YsField(nameDataBase="Vzt", nameJava="vzt", typeDataBase="varchar")
	private String vzt;
	@YsField(nameDataBase="Vnr", nameJava="vnr", typeDataBase="varchar")
	private String vnr;
	@YsField(nameDataBase="AnnexFile", nameJava="annexFile", typeDataBase="varchar")
	private String annexFile;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public ToaNotice setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getCreateChangeId() {
		return createChangeId;
	}
	public ToaNotice setCreateChangeId(Long createChangeId) {
		this.createChangeId = createChangeId;
		return this;
	}
	public String getVzt() {
		return vzt;
	}
	public ToaNotice setVzt(String vzt) {
		this.vzt = vzt;
		return this;
	}
	public String getVnr() {
		return vnr;
	}
	public ToaNotice setVnr(String vnr) {
		this.vnr = vnr;
		return this;
	}
	public String getAnnexFile() {
		return annexFile;
	}
	public ToaNotice setAnnexFile(String annexFile) {
		this.annexFile = annexFile;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public ToaNotice setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public ToaNotice setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public ToaNotice setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static ToaNotice toaNotice(
		Long createChangeId,
		String vzt,
		String vnr,
		String annexFile,
		Integer status
			) {
		ToaNotice entity = new ToaNotice();
		entity.setCreateChangeId(createChangeId);
		entity.setVzt(vzt);
		entity.setVnr(vnr);
		entity.setAnnexFile(annexFile);
		entity.setStatus(status);
		return entity;
	}
}